﻿using System;
using System.Text;
using System.Collections.Generic;
using System.Linq;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using System.Diagnostics;

namespace SmallBasicFun.Tests
{
    [TestClass]
    public class WindowManagerTest
    {
        [TestMethod]
        [ExpectedException(typeof(ArgumentNullException))]
        public void TestAdd()
        {
            try
            {
                WindowManager.Add(null);
                Assert.Fail();
            }
            catch (ArgumentNullException)
            {
                // GOOD Exception
                throw;
            }
            catch (Exception ex)
            {
                Debug.WriteLine(ex.Message);
                Assert.Fail();
            }

        }
    }
}
